drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/editors/completion/DSLTree.java
protected String getObjMetadata(String text) {
        if (text.startsWith("[")) {
            return text.substring(1,text.lastIndexOf("]"));
        } else {
            return "";
        }
    }
protected String getObjMetadata(String text) {
        if (text.startsWith("[")) {
            return text.substring(1,text.lastIndexOf("]"));
        } else {
            return "";
        }
    }
protected String getObjMetadata ( String text ) { if ( text . startsWith ( "[" ) ) { return text . substring ( 1 , text . lastIndexOf ( "]" ) ) ; } else { return "" ; } }
Method will return just the object metadata
@param text
@return
Method will return just the object metadata