*/
public Gadget addGadgetOnDashboard(final Long boardId, final String gadgetId) throws EnMeNoResultsFoundException{
final Properties gProperties = GadgetsLoader.getDirectoy(gadgetId);
if (gProperties != null) {
final Dashboard dashboard = getDashboardDao().getDashboardbyId(boardId);
final Gadget gadget = createNewGadget(gProperties, dashboard);
if (gadget.getGadgetType().equals(GadgetType.ACTIVITY_STREAM)) {
createProperty(gadget, "permissions", gProperties.getProperty("permissions"));
} else if (gadget.getGadgetType().equals(GadgetType.COMMENTS)) {
createProperty(gadget, "permissions", gProperties.getProperty("permissions"));
} else if (gadget.getGadgetType().equals(GadgetType.TWEETPOLLS_VOTES)) {
createProperty(gadget, "permissions", gProperties.getProperty("permissions"));
} else {
throw new EnMeNoResultsFoundException("gadget not found");
}
return gadget;