Session session = repositoryManager.getSession();
if (albumURL != null) {
try {
File album = new File(albumURL.toURI());
if (album.isDirectory() && album.exists()) {
String[] listPictures = album.list(new ImageFilter(".jpg"));
if (listPictures != null && listPictures.length > 0) {
Node albumNode = getAlbumNode(name);
for (String image : listPictures) {
if (!albumNode.hasNode(image)) {
Node picNode = albumNode.addNode(image);