Refactored the getApp method to check if the system is extended rather than wasting time looking for an extended system