Buggy code:
public final class ManagedServerOperationsFactory { private static final ModelNode EMPTY = new ModelNode ( ) ; public static ModelNode createBootUpdates ( final String serverName , final ModelNode domainModel , final ModelNode hostModel , final DomainController domainController ) { } private final String serverName ; private final ModelNode domainModel ; private final ModelNode hostModel ; private final ModelNode serverModel ; private final ModelNode serverGroup ; private final String profileName ; private final DomainController domainController ; ManagedServerOperationsFactory ( final String serverName , final ModelNode domainModel , final ModelNode hostModel , final DomainController domainController ) { } ModelNode getBootUpdates ( ) { } private void addNamespaces ( List < ModelNode > updates ) { } private void addNamespaces ( Map < String , ModelNode > map , ModelNode namespaces ) { } private void addProfileName ( List < ModelNode > updates ) { } private void addSchemaLocations ( List < ModelNode > updates ) { } private void addSchemaLocations ( Map < String , ModelNode > map , ModelNode namespaces ) { } private void addExtensions ( List < ModelNode > updates ) { } private void addExtensions ( Set < String > extensionNames , ModelNode extensions ) { } private void addPaths ( List < ModelNode > updates ) { } private void addPaths ( Map < String , ModelNode > map , ModelNode path ) { } private void addSystemProperties ( List < ModelNode > updates ) { } private Map < String , String > getAllSystemProperties ( boolean boottimeOnly ) { } private void addSystemProperties ( final ModelNode source , final Map < String , String > props , boolean boottimeOnly ) { if ( source . hasDefined ( SYSTEM_PROPERTY ) ) { for ( Property prop : source . get ( SYSTEM_PROPERTY ) . asPropertyList ( ) ) { ModelNode propResource = prop . getValue ( ) ; <START_BUG> if ( boottimeOnly && ( ! ( propResource . get ( BOOT_TIME ) . asBoolean ( ) ) ) ) { <END_BUG> continue ; } String val = ( propResource . hasDefined ( VALUE ) ) ? propResource . get ( VALUE ) . asString ( ) : null ; props . put ( prop . getName ( ) , val ) ; } } } private void addVault ( List < ModelNode > updates ) { } private void addVault ( List < ModelNode > updates , ModelNode vaultNode ) { } private void addManagementSecurityRealms ( List < ModelNode > updates ) { } private void addManagementComponentComponent ( ModelNode realm , ModelNode parentAddress , String key , List < ModelNode > updates ) { } private void addManagementConnections ( List < ModelNode > updates ) { } private void addInterfaces ( List < ModelNode > updates ) { } private void addInterfaces ( Map < String , ModelNode > map , ModelNode iface ) { } private void addSocketBindings ( List < ModelNode > updates , int portOffSet , String bindingRef ) { } private void mergeBindingGroups ( List < ModelNode > updates , Map < String , ModelNode > groups , final String groupName , ModelNode group , Set < String > processed ) { } private void addSocketBindings ( List < ModelNode > updates , ModelNode group , final String groupName , ModelNode defaultInterface ) { } private void addSubsystems ( List < ModelNode > updates ) { } private void addDeployments ( List < ModelNode > updates ) { } public void addDeploymentOverlays ( final List < ModelNode > updates ) { } private ModelNode pathAddress ( PathElement ... elements ) { } private String addPathProperty ( final List < String > command , final String typeName , final String propertyName , final Map < String , String > properties , final DirectoryGrouping directoryGrouping , final File typeDir , File serverDir ) { } static String getAbsolutePath ( final File root , final String ... paths ) { } private class ModelNodeList extends AbstractList < ModelNode > implements List < ModelNode > { private final ModelNode model = new ModelNode ( ) . setEmptyList ( ) ; @ Override public boolean add ( ModelNode modelNode ) { } @ Override public ModelNode get ( int index ) { } @ Override public int size ( ) { } } }

Fix:
if ( boottimeOnly && ( ! ( propResource . get ( BOOT_TIME ) . asBoolean ( false ) ) ) ) {