code: private static String getName(final String resourceName, final String fallBackName)
     {
        return resourceName.length() > 0 ? resourceName : fallBackName;
     }
docs: Returns JNDI resource name.
  
  @param resourceName to use if specified
  @param fallBackName fall back bean name otherwise
  @return JNDI resource name