CHANGE: Changed glassfish-resource.xml and refactor

Signed-off-by: arturkandurengagepoint <artur.kandur@engagepoint.com>