public Record createSubRecord ( ) { Record record = ( Record ) ClassServiceUtility . getClassService ( ) . makeObjectFromClassName ( m_strSubFile ) ; if ( record != null ) { RecordOwner recordOwner = Record . findRecordOwner ( this . getOwner ( ) ) ; record . init ( recordOwner ) ; if ( recordOwner != null ) recordOwner . removeRecord ( record ) ; this . getOwner ( ) . addListener ( new FreeOnFreeHandler ( record ) ) ; } return record ; }
Create the sub - record . Override this method to create a sub - record .