code: static void onPersist(final EntityManager em, final User user) 
  	{
  		logger.info("");
  		logger.info("");
  		logger.info("#######################Persisting##########################################");
  		logger.info("");
  		logger.info(user.toString());
  		persist(user, em);
  		logger.info("");
  		System.out.println("#######################Persisting##########################################");
  		logger.info("");
  		logger.info("");
  	}
docs: On persist user.
  
  @param em        entity manager instance.
  @param user      user object.