*/
protected final void doExecute(AdminCommandContext context) {
try {
// unfortunately we can't rely on constructors with HK2...
if (registry == null)
throw new NullPointerException(new LocalStringsImpl(getClass()).get("restart.server.internalError", "registry was not set"));
init(context);
// get the GlassFish object - we have to wait in case startup is still in progress
// This is a temporary work-around until HK2 supports waiting for the service to