/src/main/java/org/htmlunit/ProxyAutoConfig.java
( ( ScriptableObject ) scope ) .defineProperty ( methodName, functionObject, ScriptableObject.EMPTY ) ;
} } private void defineMethod(final String methodName, final Scriptable scope) { for (final Method method : getClass().getMethods()) { if (method.getName().equals(methodName)) { final FunctionObject functionObject = new FunctionObject(methodName, method, scope); <extra_id_0> } } } public static boolean isPlainHostName(final String host) { return host.indexOf('.') == -1; }