code: public static ORule.ResourceGeneric getResourceGeneric(String name)
  	{
  		String shortName = Strings.beforeFirst(name, '.');
  		if(Strings.isEmpty(shortName)) shortName = name;
  		ORule.ResourceGeneric value = ORule.ResourceGeneric.valueOf(shortName);
  		if(value==null) value = ORule.mapLegacyResourceToGenericResource(name);
  		return value;
  	}
docs: Transform name to {@link ORule.ResourceGeneric}
  @param name name to transform
  @return {@link ORule.ResourceGeneric} or null