code: private RelationType getRelationType(int value)
     {
        RelationType result = null;
        if (value >= 0 || value < RELATION_TYPES.length)
        {
           result = RELATION_TYPES[value];
        }
        if (result == null)
        {
           result = RelationType.FINISH_START;
        }
        return result;
     }
docs: Convert an integer into a RelationType instance.
  
  @param value relation type as an integer
  @return RelationType instance