@Override
public Layout get(Integer layoutId, Class<? extends Layout> clazz) {
String sql = "SELECT DISTINCT * FROM " +quoteTable("layout")+ " WHERE layout_id =?";
return (LayoutForm)getJdbcOperations().queryForObject(
sql, new Object[]{layoutId},
new LayoutRowMapper().setTargetClass(clazz));
}