aebbert: feel free to file an enhancement request using the IssueTracker on http://glassfish.dev.java.net for your suggestion.
In the meantime, it would be nice to have a runtime library ( a jar file) for adding custom code to cover other cases where custom code can be added. See issue https://migrate2glassfish.dev.java.net/issues/show_bug.cgi?id=18 which I just filed.
[Message sent by forum member 'sekhar' (sekhar)]