if (host == null || tenantId == null || user == null || password == null) {
throw new SDKException("Cannot Create Platform as Mandatory Param are not set");
}
if (System.getProperty(CUMULOCITY_PAGE_SIZE) != null) {
int pageSize = Integer.parseInt(System.getProperty(CUMULOCITY_PAGE_SIZE));
platform = new PlatformImpl(host, port, new CumulocityCredentials(tenantId, user, password,applicationKey), pageSize);
} else {
platform = new PlatformImpl(host, port, new CumulocityCredentials(tenantId, user, password,applicationKey));
}
String proxyHost = System.getProperty(CUMOLOCITY_PROXY_HOST);
int proxyPort = -1;
if (System.getProperty(CUMULOCITY_PROXY_PORT) != null) {
proxyPort = Integer.parseInt(System.getProperty(CUMULOCITY_PROXY_PORT));