question: private boolean applicationEligibleForUpgrade ( String realm , String appName , Map < String , Set < String > > appData ) { if ( ROOT_REALM . equals ( realm ) ) { return ! defaultApplicationNames . contains ( appName ) && ! isNotEmpty ( appData . get ( CONFIG_RESOURCE_TYPE_UUIDS ) ) ; } else { return ! isNotEmpty ( appData . get ( CONFIG_RESOURCE_TYPE_UUIDS ) ) ; } }
target:  An application is eligible for upgrade if it's not one of the default applications and it does not contain any resource types.