Buggy code:
public class ModernApplicationContext extends ApplicationContextSupport { private static final long serialVersionUID = - 8230105685329758613L ; private static final Key APPLICATION_TIMEOUT = KeyImpl . intern ( "applicationTimeout" ) ; private static final Key CLIENT_MANAGEMENT = KeyImpl . intern ( "clientManagement" ) ; private static final Key CLIENT_STORAGE = KeyImpl . intern ( "clientStorage" ) ; private static final Key SESSION_STORAGE = KeyImpl . intern ( "sessionStorage" ) ; private static final Key LOGIN_STORAGE = KeyImpl . intern ( "loginStorage" ) ; private static final Key SESSION_TYPE = KeyImpl . intern ( "sessionType" ) ; private static final Key SESSION_MANAGEMENT = KeyImpl . intern ( "sessionManagement" ) ; private static final Key SESSION_TIMEOUT = KeyImpl . intern ( "sessionTimeout" ) ; private static final Key CLIENT_TIMEOUT = KeyImpl . intern ( "clientTimeout" ) ; private static final Key SET_CLIENT_COOKIES = KeyImpl . intern ( "setClientCookies" ) ; private static final Key SET_DOMAIN_COOKIES = KeyImpl . intern ( "setDomainCookies" ) ; private static final Key SCRIPT_PROTECT = KeyImpl . intern ( "scriptProtect" ) ; private static final Key MAPPINGS = KeyImpl . intern ( "mappings" ) ; private static final Key CUSTOM_TAG_PATHS = KeyImpl . intern ( "customtagpaths" ) ; private static final Key COMPONENT_PATHS = KeyImpl . intern ( "componentpaths" ) ; private static final Key SECURE_JSON_PREFIX = KeyImpl . intern ( "secureJsonPrefix" ) ; private static final Key SECURE_JSON = KeyImpl . intern ( "secureJson" ) ; private static final Key LOCAL_MODE = KeyImpl . intern ( "localMode" ) ; private static final Key SESSION_CLUSTER = KeyImpl . intern ( "sessionCluster" ) ; private static final Key CLIENT_CLUSTER = KeyImpl . intern ( "clientCluster" ) ; private static final Key DEFAULT_DATA_SOURCE = KeyImpl . intern ( "defaultdatasource" ) ; private static final Key ORM_ENABLED = KeyImpl . intern ( "ormenabled" ) ; private static final Key ORM_SETTINGS = KeyImpl . intern ( "ormsettings" ) ; private ComponentAccess component ; private ConfigWebImpl ci ; private String name = null ; private boolean setClientCookies ; private boolean setDomainCookies ; private boolean setSessionManagement ; private boolean setClientManagement ; private TimeSpan sessionTimeout ; private TimeSpan clientTimeout ; private TimeSpan applicationTimeout ; private int loginStorage = Scope . SCOPE_COOKIE ; private int scriptProtect ; private String defaultDataSource ; private int localMode ; private short sessionType ; private boolean sessionCluster ; private boolean clientCluster ; private String clientStorage ; private String sessionStorage ; private String secureJsonPrefix = "////" ; private boolean secureJson ; private Mapping [ ] mappings ; private Mapping [ ] ctmappings ; private Mapping [ ] cmappings ; private Properties s3 ; private boolean initApplicationTimeout ; private boolean initSessionTimeout ; private boolean initClientTimeout ; private boolean initSetClientCookies ; private boolean initSetClientManagement ; private boolean initSetDomainCookies ; private boolean initSetSessionManagement ; private boolean initScriptProtect ; private boolean initClientStorage ; private boolean initSecureJsonPrefix ; private boolean initSecureJson ; private boolean initSessionStorage ; private boolean initSessionCluster ; private boolean initClientCluster ; private boolean initLoginStorage ; private boolean initSessionType ; private boolean initMappings ; private boolean initCTMappings ; private boolean initCMappings ; private boolean initLocalMode ; private boolean initS3 ; private boolean ormEnabled ; private ORMConfiguration ormConfig ; private String ormDatasource ; public ModernApplicationContext ( PageContext pc , ComponentAccess cfc , RefBoolean throwsErrorWhileInit ) { } public void reinitORM ( PageContext pc ) throws PageException { } public boolean hasName ( ) { <START_BUG> return ! ( StringUtil . isEmpty ( getName ( ) ) ) ; <END_BUG> } public String getName ( ) { } public int getLoginStorage ( ) { } public TimeSpan getApplicationTimeout ( ) { } public TimeSpan getSessionTimeout ( ) { } public TimeSpan getClientTimeout ( ) { } public boolean isSetClientCookies ( ) { } public boolean isSetClientManagement ( ) { } public boolean isSetDomainCookies ( ) { } public boolean isSetSessionManagement ( ) { } public String getClientstorage ( ) { } public int getScriptProtect ( ) { } public String getSecureJsonPrefix ( ) { } public boolean getSecureJson ( ) { } public String getSessionstorage ( ) { } public boolean getSessionCluster ( ) { } public boolean getClientCluster ( ) { } public short getSessionType ( ) { } public Mapping [ ] getMappings ( ) { } public Mapping [ ] getCustomTagMappings ( ) { } public Mapping [ ] getComponentMappings ( ) { } public int getLocalMode ( ) { } public Properties getS3 ( ) { } public String getDefaultDataSource ( ) { } public boolean isORMEnabled ( ) { } public String getORMDatasource ( ) { } public ORMConfiguration getORMConfiguration ( ) { } public ComponentAccess getComponent ( ) { } public Object getCustom ( Key key ) { } private static Object get ( ComponentAccess app , Key name , String defaultValue ) { } public void setApplicationTimeout ( TimeSpan applicationTimeout ) { } public void setSessionTimeout ( TimeSpan sessionTimeout ) { } public void setClientTimeout ( TimeSpan clientTimeout ) { } public void setClientstorage ( String clientstorage ) { } public void setSessionstorage ( String sessionstorage ) { } public void setCustomTagMappings ( Mapping [ ] customTagMappings ) { } public void setComponentMappings ( Mapping [ ] componentMappings ) { } public void setMappings ( Mapping [ ] mappings ) { } public void setLoginStorage ( int loginStorage ) { } @ Override public void setDefaultDataSource ( String datasource ) { } public void setScriptProtect ( int scriptrotect ) { } public void setSecureJson ( boolean secureJson ) { } public void setSecureJsonPrefix ( String secureJsonPrefix ) { } public void setSetClientCookies ( boolean setClientCookies ) { } public void setSetClientManagement ( boolean setClientManagement ) { } public void setSetDomainCookies ( boolean setDomainCookies ) { } public void setSetSessionManagement ( boolean setSessionManagement ) { } public void setLocalMode ( int localMode ) { } public void setSessionType ( short sessionType ) { } public void setClientCluster ( boolean clientCluster ) { } public void setSessionCluster ( boolean sessionCluster ) { } public void setS3 ( Properties s3 ) { }

Fix:
return true ;