Casting here is redundant, please replace by:
    SimpleUser developer = identityManager.lookupIdentityById(SimpleUser.class, id);