private void setHCatalogRepositoryValue( HCatalogConnection connection, INode node, IElementParameter param) { if (EHCatalogRepositoryToComponent.DISTRIBUTION .getRepositoryValue() .equals(param.getRepositoryValue())) { String value = ComponentToRepositoryProperty.getParameterValue(connection, node, param); if (value != null) { connection.setDistribution(value); } } else if (EHCatalogRepositoryToComponent.HCAT_VERSION .getRepositoryValue() .equals(param.getRepositoryValue())) { String value = ComponentToRepositoryProperty.getParameterValue(connection, node, param); if (value != null) { connection.setHcatVersion(value); } } else if (EHCatalogRepositoryToComponent.TEMPLETON_HOST .getRepositoryValue() .equals(param.getRepositoryValue())) { String value = ComponentToRepositoryProperty.getParameterValue(connection, node, param); if (value != null) { connection.setHostName(value); } } else if (EHCatalogRepositoryToComponent.TEMPLETON_PORT .getRepositoryValue() .equals(param.getRepositoryValue())) { String value = ComponentToRepositoryProperty.getParameterValue(connection, node, param); if (value != null) { connection.setPort(value); } } else if (EHCatalogRepositoryToComponent.DATABASE_NAME .getRepositoryValue() .equals(param.getRepositoryValue())) { String value = ComponentToRepositoryProperty.getParameterValue(connection, node, param); if (value != null) { connection.setDatabase(value); } } else if (EHCatalogRepositoryToComponent.USERNAME .getRepositoryValue() .equals(param.getRepositoryValue())) { String value = ComponentToRepositoryProperty.getParameterValue(connection, node, param); if (value != null) { connection.setUserName(value); } } }