public void setComment(FileObject f,Picture picture){
		if(picture != null){
			try{
				if(!(f.getComment().equals("")) && f.getComment() != null){
					Comment comment = commentDao.findById(f.getComment());
					if(comment != null){
						beginTransaction();
						List<Picture> pics = comment.getPictures();
						pics.add(picture);
						comment.setPicture(pics);
						picture.setComment(comment);							
						commitTransaction();
					}else{
						beginTransaction();
						comment = new Comment();
						String comm ="";
						try{
							comm = f.getComment().toLowerCase();
							String s = f.getComment().charAt(0) + "";
							comm  = s.toUpperCase() + comm.substring(1);
						}catch(Exception u){
							Log.getLogger().log(Level.SEVERE, "Unexpected problems with the String " + f.getComment());
						}
						comment.setComment(comm);		
						List<Picture> pics = new ArrayList<Picture>();
						pics.add(picture);
						comment.setPicture(pics);
						picture.setComment(comment);
						entityManager.persist(comment);
						commitTransaction();
					}

				}
			}

			catch(Exception k){


			}
		}
	}