class GeneralTopologyObjectMapper {

    public GenericResourceApiConfigurationinformationConfigurationInformation buildConfigurationInformation(
            Configuration configuration, boolean includeModelInformation) {
        GenericResourceApiConfigurationinformationConfigurationInformation configurationInformation =
                new GenericResourceApiConfigurationinformationConfigurationInformation();
        configurationInformation.setConfigurationId(configuration.getConfigurationId());
        configurationInformation.setConfigurationName(configuration.getConfigurationName());
        configurationInformation.setConfigurationType(configuration.getConfigurationType());
        if (includeModelInformation) {
            GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation =
                    new GenericResourceApiOnapmodelinformationOnapModelInformation();
            onapModelInformation.setModelInvariantUuid(configuration.getModelInfoConfiguration().getModelInvariantId());
            onapModelInformation.setModelUuid(configuration.getModelInfoConfiguration().getModelVersionId());
            onapModelInformation
                    .setModelCustomizationUuid(configuration.getModelInfoConfiguration().getModelCustomizationId());
            configurationInformation.setOnapModelInformation(onapModelInformation);
        }
        return configurationInformation;
    }

}