code: public static SecureProperties encryptPropertiesFile(File clearProperties)
  			throws FileNotFoundException, IOException, KeyStoreException {
  
  		// Open clear properties file and load it
  		Properties cProperties = new Properties();
  		FileInputStream fis = new FileInputStream(clearProperties);
  		cProperties.load(fis);
  		fis.close();
  
  		return encryptPropertiesFile(clearProperties,
  				cProperties.getProperty(KEY_PATH_PROPERTY_KEY),
  				cProperties.getProperty(KEYSTORE_PASSWORD_PROPERTY_KEY),
  				cProperties.getProperty(ENTRY_NAME_PROPERTY_KEY), true);
  
  	}
docs: Utility which will take an existing Properties file on disk and replace
  any -unencrypted values with encrypted.<br>
  NOTE: The encryption related properties need to be properly set prior to
  using this. entry-name, key-path, keystore-password
  
  @param clearProperties
  Un-encrypted properties file to be secured
  @return
  @throws FileNotFoundException
  Properties file not found on disk.
  @throws IOException
  Error reading/writing From the clear properties or to the
  secure properties
  @throws KeyStoreException
  Error accessing or using the keystore.