refactored glassfish server to own utilitz class