protected String extractPackage(String classname){
  if (classname.indexOf(".") > -1) {
    return classname.substring(0,classname.lastIndexOf("."));
  }
 else {
    return DEFAULT_PACKAGE;
  }
}

protected String extractPackage ( String classname ) { if ( classname . indexOf ( "." ) > - 1 ) { return classname . substring ( 0 , classname . lastIndexOf ( "." ) ) ; } else { return DEFAULT_PACKAGE ; } }
extracts the package name from the ( clean ) classname .
