try {
is = getInputStream(ownerId.toString());
reader = new InputStreamReader(is, UTF_8);
return getHavaloGsonInstance().fromJson(reader, Repository.class);
} catch (UnsupportedEncodingException e) {
throw new RepositoryLoadException("Failed to load repository " +
"by ID: " + ownerId.toString(), e);
} finally {
closeQuietly(reader);
closeQuietly(is);
}