fix bad code to allow glassfish to deploy the application