public Object getAsObject(FacesContext facesContext, UIComponent component, String value) {
if(value.trim().equals("") || value.equals("null")){
return null;
}
else{
DAOSubject daoSubject = DAOSubject.getInstance();
return daoSubject.get(new ObjectId(value));
}
}