String mgtClusterSubDomain,
DataCartridge dataCartridge,
String state,
String subscribeKey) {
CartridgeSubscriptionInfo cartridgeSubscriptionInfo = new CartridgeSubscriptionInfo();
cartridgeSubscriptionInfo.setCartridge(cartridgeType);
cartridgeSubscriptionInfo.setAlias(cartridgeName);
cartridgeSubscriptionInfo.setClusterDomain(clusterDomain);
cartridgeSubscriptionInfo.setClusterSubdomain(clusterSubDomain);
cartridgeSubscriptionInfo.setMgtClusterDomain(mgtClusterDomain);
cartridgeSubscriptionInfo.setMgtClusterSubDomain(mgtClusterSubDomain);
cartridgeSubscriptionInfo.setHostName(hostName);
cartridgeSubscriptionInfo.setPolicy(policyName);
cartridgeSubscriptionInfo.setRepository(repository);
cartridgeSubscriptionInfo.setPortMappings(createPortMappings(cartridgeInfo));
cartridgeSubscriptionInfo.setProvider(cartridgeInfo.getProvider());
cartridgeSubscriptionInfo.setDataCartridge(dataCartridge);
cartridgeSubscriptionInfo.setTenantId(tenantId);
cartridgeSubscriptionInfo.setTenantDomain(tenantDomain);
cartridgeSubscriptionInfo.setBaseDirectory(cartridgeInfo.getBaseDir());
//cartridgeSubscriptionInfo.setState("PENDING");
cartridgeSubscriptionInfo.setState(state);
cartridgeSubscriptionInfo.setSubscriptionKey(subscribeKey);
return cartridgeSubscriptionInfo;
}