public static ClassDescriptor createClassDescriptorFromResourceName(String resourceName){
  if (!isClassResource(resourceName)) {
    throw new IllegalArgumentException("Resource " + resourceName + " is not a class");
  }
  return createClassDescriptor(resourceName.substring(0,resourceName.length() - 6));
}

public static ClassDescriptor createClassDescriptorFromResourceName ( String resourceName ) { if ( ! isClassResource ( resourceName ) ) { throw new IllegalArgumentException ( "Resource " + resourceName + " is not a class" ) ; } return createClassDescriptor ( resourceName . substring ( 0 , resourceName . length ( ) - 6 ) ) ; }
create a class descriptor from a resource name .
