class RoleConverter implements ToServerConverter<ClientRole, Role, ToServerConversionOptions>, ToClientConverter<Role, ClientRole, ToClientConversionOptions> {

    @Override
    public ClientRole toClient(Role serverObject, ToClientConversionOptions options) {
        ClientRole clientRole = new ClientRole();

        clientRole.setName(serverObject.getRoleName());
        clientRole.setExternallyDefined(serverObject.isExternallyDefined());
        clientRole.setTenantId(serverObject.getTenantId());

        return clientRole;
    }

}