Implementing http://java.net/jira/browse/GLASSFISH-19395 and as a basic of glassfish provisioning stories