/** * Creates and returns a deep copy of a given {@code javax.xml.bind.JAXBElement<com.evolveum.midpoint.xml.ns._public.common.common_3.FunctionLibraryType>} instance. * * @param e * The instance to copy or {@code null}. * @return * A deep copy of {@code e} or {@code null} if {@code e} is {@code null}. */ @SuppressWarnings("unchecked") private static JAXBElement<FunctionLibraryType> copyOfFunctionLibraryTypeElement(final JAXBElement<FunctionLibraryType> e) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 if (e!= null) { final JAXBElement<FunctionLibraryType> copy = new JAXBElement<FunctionLibraryType>(e.getName(), e.getDeclaredType(), e.getScope(), e.getValue()); copy.setNil(e.isNil()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.FunctionLibraryType copy.setValue(((((FunctionLibraryType) copy.getValue()) == null)?null:((FunctionLibraryType) copy.getValue()).clone())); return copy; } return null; }
/** * Creates and returns a deep copy of a given {@code javax.xml.bind.JAXBElement<com.evolveum.midpoint.xml.ns._public.common.common_3.FunctionLibraryType>} instance. * * @param e * The instance to copy or {@code null}. * @return * A deep copy of {@code e} or {@code null} if {@code e} is {@code null}. */ @SuppressWarnings("unchecked") private static JAXBElement<FunctionLibraryType> copyOfFunctionLibraryTypeElement(final JAXBElement<FunctionLibraryType> e) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 if (e!= null) { final JAXBElement<FunctionLibraryType> copy = new JAXBElement<FunctionLibraryType>(e.getName(), e.getDeclaredType(), e.getScope(), e.getValue()); copy.setNil(e.isNil()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.FunctionLibraryType copy.setValue(((((FunctionLibraryType) copy.getValue()) == null)?null:((FunctionLibraryType) copy.getValue()).clone())); return copy; } return null; }