You can take a look at your own Gluu Server. We shipped with sample codes inside there, you just need to put your classes and declaration according to your requirement.
Hit 'Cache Refresh' tab from [Manage Custom Script](https://www.gluu.org/docs/admin-guide/configuration/#manage-custom-scripts) section.
The idea of 'manage custom script' is to design and operate your Gluu Server according to organization's very own need.