if (hostname.length() == 0) {
if (hostname==null || hostname.length() == 0) {
    public synchronized void sfStart() throws SmartFrogException, RemoteException {        super.sfStart();        protocol = sfResolve(DeploymentServer.ATTR_PROTOCOL,                protocol, false);        hostname = sfResolve(DeploymentServer.ATTR_HOSTNAME,                hostname, false);        if (hostname.length() == 0) {            hostname = Constants.LOCALHOST;        }        port = sfResolve(DeploymentServer.ATTR_PORT,                port, true);        String ctx = sfResolve(DeploymentServer.ATTR_CONTEXTPATH,                Constants.CONTEXT_PATH, false);        String servicespath = sfResolve(DeploymentServer.ATTR_SERVICESPATH,                Constants.SERVICES_PATH, false);        String notifyPath = sfResolve(ATTR_NOTIFICATION_PATH,                "", false);    }