public byte[] getPasswordStorageData() throws IOException{
String passwordStoragePath = getPasswordStoragePath();
if (null == passwordStoragePath) {
return null;
}
Path path = PathUtil.asPath(passwordStoragePath);
ResourceMeta contents = context.getStorageTree().getResource(path)
.getContents();
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
contents.writeContent(byteArrayOutputStream);
return byteArrayOutputStream.toByteArray();