code: private String getEntityManagerFactoryName(String beanName) {
  		if (beanName.length() > ENTITY_MANAGER_FACTORY_SUFFIX.length() && StringUtils
  				.endsWithIgnoreCase(beanName, ENTITY_MANAGER_FACTORY_SUFFIX)) {
  			return beanName.substring(0,
  					beanName.length() - ENTITY_MANAGER_FACTORY_SUFFIX.length());
  		}
  		return beanName;
  	}
docs: Get the name of an {@link EntityManagerFactory} based on its {@code beanName}.
  @param beanName the name of the {@link EntityManagerFactory} bean
  @return a name for the given entity manager factory