code: public ProjectTaskPredecessor getProjectTaskPredecessor()
      {
          if (m_recProjectTaskPredecessor == null)
          {
              m_recProjectTaskPredecessor = new ProjectTaskPredecessor(this.getRecordOwner());
              // Must have the sub-records set up in advance to EEP them from mixing with this record.
              ((ReferenceField)m_recProjectTaskPredecessor.getField(ProjectTaskPredecessor.PROJECT_TASK_ID)).getReferenceRecord();
              ((ReferenceField)m_recProjectTaskPredecessor.getField(ProjectTaskPredecessor.PROJECT_TASK_PREDECESSOR_ID)).getReferenceRecord();
          }
          return m_recProjectTaskPredecessor;
      }
docs: GetProjectTaskPredecessor Method.