CopyTemplateCmd: Fix correct annotation for id param in copytemplate

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
IteratorUtil: Add generic method to return sorted list out of a collection

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiXmlDocWriter: Fix multiple field occurence in apidocs by using set

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiDiscoveryServiceImpl: Fix fields variable definition from array to set

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ReflectUtil: Use collections to grow list and not manual array memory management

Fix usage in ApiDispatcher. Add two kinds of helpers:
- One that gets list of exclude cmd whose fields are not be included
- One that loops till a base class is asssignable from superclass

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
cli: Fix asyncblock to search for correct key instead of hardcoded index

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
EntityManager: Implement method to search by uuid including removed entities

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
GenericDao: Add method to find by uuid string including removed entities

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiDispatcher: Fix uuid->id translation and throw better debug statement

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>