/** CustomObject取得処理 */
 public static List<com.SFManagementAntTask.partner.dao.model.CustomObject> findCustomObject() {
   QueryResult res = null;
   List<com.SFManagementAntTask.partner.dao.model.CustomObject> cobjlist =
       new ArrayList<com.SFManagementAntTask.partner.dao.model.CustomObject>();
   String query =
       new StringBuffer()
           .append("Select ")
           .append(" Id, CustomHelpId, Description, DeveloperName, NamespacePrefix,")
           .append(" CreatedDate, CreatedById, CreatedBy.Name, ")
           .append(" LastModifiedDate, LastModifiedById, LastModifiedBy.Name ")
           .append(" From CustomObject")
           .toString();
   try {
     res = ConnectionUtil.connectTooling().query(query);
   } catch (ConnectionException e) {
     log.error("createPartnerCon", e);
     new BuildException(e);
   }
   if (res == null) {
     return null;
   }
   // SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:MM:SS");
   for (SObject obj : res.getRecords()) {
     CustomObject mobj = (CustomObject) obj;
     com.SFManagementAntTask.partner.dao.model.CustomObject cobj =
         new com.SFManagementAntTask.partner.dao.model.CustomObject();
     cobj.setId(mobj.getId());
     // log.debug("getDeveloperName : " + mobj.getDeveloperName());
     cobj.setName(mobj.getDeveloperName());
     // log.debug("getLanguage : " + mobj.getLanguage());
     // log.debug("getCustomHelpId : " + mobj.getCustomHelpId()); // ?
     cobj.setDescription(mobj.getDescription()); // ?
     // log.debug(mobj.getExternalDataSource()); // ?
     // log.debug("getExternalDataSourceId : " + mobj.getExternalDataSourceId());
     // log.debug("getExternalName : " + mobj.getExternalName());
     // log.debug("getExternalRepository : " + mobj.getExternalRepository()); // ?
     // log.debug(mobj.getFieldsToNull()); // ?
     cobj.setNamespacePrefix(mobj.getNamespacePrefix());
     // log.debug("getSharingModel : " + mobj.getSharingModel());
     cobj.setCreatedByName(mobj.getCreatedBy().getName());
     cobj.setCreatedById(mobj.getCreatedById());
     if (mobj.getCreatedDate() != null) {
       Date date = mobj.getCreatedDate().getTime();
       cobj.setCreatedDate(date);
       // log.debug("getCreatedDate : " + format.format(date));
     }
     if (mobj.getLastModifiedBy() != null) {
       cobj.setLastModifiedByName(mobj.getLastModifiedBy().getName());
     }
     cobj.setLastModifiedById(mobj.getLastModifiedById());
     if (mobj.getLastModifiedDate() != null) {
       Date date = mobj.getLastModifiedDate().getTime();
       cobj.setLastModifiedDate(date);
       // log.debug("getLastModifiedDate : " + format.format(date));
     }
     cobjlist.add(cobj);
   }
   return cobjlist;
 }