this.layoutSuiteBuilder=layoutSuiteBuilder;
}
public LayoutSuite build(String username)
throws JSONException, LayoutRESTOPException {
UILayout wholelayout = UserDBMgr.getUILayoutBySN(username);
if (wholelayout == null) {
throw new LayoutRESTOPException(errorTxtLSNonExist);
} else {
String wholeLayoutRawdata = wholelayout.getLayout();
if (wholeLayoutRawdata.trim().equals("")) {
return new LayoutSuite();
} else {
JSONObject wholeLayoutObj = new JSONObject(wholeLayoutRawdata);
LayoutSuite layoutSuite = layoutSuiteBuilder.build(wholeLayoutObj);