def METHOD_NAME(self, registerRequest, client, configurationAttributes):
    print "Casa client registration. CreateClient method"
    redirectUris = client.getRedirectUris()
    print "Casa client registration. Redirect Uris: %s" % redirectUris
    if redirectUris == None:
        return True
    credManagerClient = False
    for redirectUri in redirectUris:
        if self.clientRedirectUrisSet.contains(redirectUri):
            credManagerClient = True
            break
    if not credManagerClient:
        return True
    print "Casa client registration. Client is Gluu Casa"
    self.setClientScopes(client, configurationAttributes.get("scopes"))
    #Extend client lifetime for one year
    cal=GregorianCalendar()
    cal.add(1,10)
    client.setClientSecretExpiresAt(Date(cal.getTimeInMillis()))
    client.setTrustedClient(True)
    client.setDeletable(False)
    return True