*/
public List<GadgetProperties> getPropertiesbyGadget(final Long gadgetId) throws EnMeGadgetNotFoundException{
final Gadget gadget = getDashboardDao().getGadgetbyId(gadgetId);
List<GadgetProperties> properties = new ArrayList<GadgetProperties>();
if (gadget == null) {
throw new EnMeGadgetNotFoundException("gadget not found");
} else{
properties = getDashboardDao().retrievePropertiesbyGadget(gadgetId);
}
return properties;
}