public static AWSCredentials loadKeys() throws IOException{
    	InputStream propertiesIS = TransferManager.class.getResourceAsStream(SAMPLES_PROPERTIES_NAME);
    	if(propertiesIS == null) {
    		throw new RuntimeException("Property file does not exist");
    	}

    	Properties properties = new Properties();
    	properties.load(propertiesIS);

    	if(!properties.containsKey(S3_ACCESS_KEY_PROPERTY_NAME) || !properties.containsKey(S3_SECRET_KEY_PROPERTY_NAME)){
    		throw new RuntimeException("s3 keys are not in the file");
    	}
    	
    	AWSCredentials s3credential = new AWSCredentials((String)properties.get(S3_ACCESS_KEY_PROPERTY_NAME),
    			                                         (String)properties.get(S3_SECRET_KEY_PROPERTY_NAME));
		return s3credential;
    }