//get all host systems if no profile
if (publicKey.getProfile() != null && publicKey.getProfile().getId() != null) {
hostSystemList = ProfileSystemsDB.getSystemsByProfile(publicKey.getProfile().getId());
//get host system for profile
} else {
sortedSet = SystemDB.getSystemSet(new SortedSet());
if (sortedSet != null && sortedSet.getItemList() != null) {
hostSystemList = (ArrayList<HostSystem>) sortedSet.getItemList();
}
}
if (!hostSystemList.isEmpty()) {