\r
public class Utils {\r
\r
+ public static String nl = System.getProperty("line.separator"); \r
+\r
public static String objectId(Object o) {\r
int lastdot = o.toString().lastIndexOf('.');\r
if (lastdot>-1 && lastdot+1<o.toString().length()) {\r
return o.toString();\r
}\r
}\r
-\r
+ \r
+ public static String baseObjectName(Object o) {\r
+ String objName = o.getClass().getName();\r
+ if (objName.contains("$")) {\r
+ return objectId(objName.substring(0,objName.indexOf("$"))); \r
+ } else {\r
+ return objectId(objName);\r
+ }\r
+ }\r
}\r