protected String getObjMetadata ( String text ) { if ( text . startsWith ( "[" ) ) { return text . substring ( 1 , text . lastIndexOf ( "]" ) ) ; } else { return "" ; } }
Method will return just the object metadata