class JWTCustomerServicesImpl extends AbstractCustomerServices {
	
	
	@Inject
	public JWTCustomerServicesImpl(CustomerService customerService, PermissionService permissionService, GroupService groupService) {
		super(customerService, permissionService, groupService);
		this.customerService = customerService;
		this.permissionService = permissionService;
		this.groupService = groupService;
	}

	@Override
	protected UserDetails userDetails(String userName, Customer customer, Collection<GrantedAuthority> authorities) {<FILL_FUNCTION_BODY>}

}

        
		AuditSection section = null;
		section = customer.getAuditSection();
		Date lastModified = null;
		//if(section != null) {//does not represent password change
		//	lastModified = section.getDateModified();
		//}
		
		return new JWTUser(
        		customer.getId(),
        		userName,
        		customer.getBilling().getFirstName(),
        		customer.getBilling().getLastName(),
                customer.getEmailAddress(),
                customer.getPassword(),
                authorities,
                true,
                lastModified
        );
	
<methods>public void <init>(com.salesmanager.core.business.services.customer.CustomerService, com.salesmanager.core.business.services.user.PermissionService, com.salesmanager.core.business.services.user.GroupService) ,public UserDetails loadUserByUsername(java.lang.String) throws UsernameNotFoundException, org.springframework.dao.DataAccessException<variables>private static final org.slf4j.Logger LOGGER,public static final java.lang.String ROLE_PREFIX,protected com.salesmanager.core.business.services.customer.CustomerService customerService,protected com.salesmanager.core.business.services.user.GroupService groupService,protected com.salesmanager.core.business.services.user.PermissionService permissionService