Source:
<code>public int compareTo(DataSpacesURI other) { if (this == other) { return 0; } if (other == null) { throw new NullPointerException(); } <START> if (appId == null) { <END> if (other.appId != null) { return -1; } return 0; } else { if (other.appId == null) { return 1; } final int cmp = appId.compareTo(other.appId); if (cmp != 0) { return cmp; } } if (spaceType == null) { if (other.spaceType != null) { return -1; } return 0; } else { if (other.spaceType == null) { return 1; } final int cmp = spaceType.compareTo(other.spaceType); if (cmp != 0) { return cmp; } } switch (spaceType) { case INPUT: case OUTPUT: if (name == null) { if (other.name != null) { return -1; } return 0; } else { if (other.name == null) { return 1; } final int cmp = name.compareTo(other.name); if (cmp != 0) { return cmp; } } break; case SCRATCH: if (runtimeId == null) { if (other.runtimeId != null) { return -1; } return 0; } else { if (other.runtimeId == null) { return 1; } final int cmp = runtimeId.compareTo(other.runtimeId); if (cmp != 0) { return cmp; } } if (nodeId == null) { if (other.nodeId != null) { return -1; } return 0; } else { if (other.nodeId == null) { return 1; } final int cmp = nodeId.compareTo(other.nodeId); if (cmp != 0) { return cmp; } } if (activeObjectId == null) { if (other.activeObjectId != null) { return -1; } return 0; } else { if (other.activeObjectId == null) { return 1; } final int cmp = activeObjectId.compareTo(other.activeObjectId); if (cmp != 0) { return cmp; } } break; } if (userPath == null) { if (other.userPath != null) { return -1; } return 0; } else { if (other.userPath == null) { return 1; } return userPath.compareTo(other.userPath); } }</code><technical_language>put this a private method give this if construct a title</technical_language>

Target:
public int compareTo(DataSpacesURI other) { if (this == other) { return 0; } if (other == null) { throw new NullPointerException(); } Integer compareAppIds = compareAppIds(other); if (compareAppIds != null) { return compareAppIds; } if (spaceType == null) { if (other.spaceType != null) { return -1; } return 0; } else { if (other.spaceType == null) { return 1; } final int cmp = spaceType.compareTo(other.spaceType); if (cmp != 0) { return cmp; } } switch (spaceType) { case INPUT: case OUTPUT: if (name == null) { if (other.name != null) { return -1; } return 0; } else { if (other.name == null) { return 1; } final int cmp = name.compareTo(other.name); if (cmp != 0) { return cmp; } } break; case SCRATCH: if (runtimeId == null) { if (other.runtimeId != null) { return -1; } return 0; } else { if (other.runtimeId == null) { return 1; } final int cmp = runtimeId.compareTo(other.runtimeId); if (cmp != 0) { return cmp; } } if (nodeId == null) { if (other.nodeId != null) { return -1; } return 0; } else { if (other.nodeId == null) { return 1; } final int cmp = nodeId.compareTo(other.nodeId); if (cmp != 0) { return cmp; } } if (activeObjectId == null) { if (other.activeObjectId != null) { return -1; } return 0; } else { if (other.activeObjectId == null) { return 1; } final int cmp = activeObjectId.compareTo(other.activeObjectId); if (cmp != 0) { return cmp; } } break; } if (userPath == null) { if (other.userPath != null) { return -1; } return 0; } else { if (other.userPath == null) { return 1; } return userPath.compareTo(other.userPath); } }