$entityCaseID is option value for case type 'Application', doesn't need to do so much processing.