/** * Gets the Registration Type (i.e. the code that determines if the ks script needs to generate a * reactivation key or not) * * @param user the user object needed to load the profile from cobbler * @return the registration type */ public RegistrationType getRegistrationType(User user) { Profile prof = getCobblerObject(null); if (prof == null) { return RegistrationType.getDefault(); } return RegistrationType.find((String) prof.getKsMeta().get(RegistrationType.COBBLER_VAR)); }