public static Map getAssetList(String serverID, String nymID, List existingAssets) {

        Map basketList = new HashMap();

        /* TODO: This loop will be replaced by server call
        which returns only those assets registered at the server */

        List registeredAssets = getRegisteredAssets(serverID, nymID);
        if (registeredAssets != null) {
            int count = registeredAssets.size();
            int i = 0, j = 0;
            System.out.println("count:" + count);
            while (j < count) {
                String key = (String) registeredAssets.get(j);
                if (!Utility.VerifyStringVal(key)) {
                    continue;
                }
                boolean addToList = true;
                if (existingAssets != null && !existingAssets.isEmpty()) {
                    for (int k = 0; k < existingAssets.size(); k++) {
                        if (key.equals(existingAssets.get(k))) {
                            addToList = false;
                            break;
                        }
                    }

                }
                if (addToList) {
                    String label = otapiJNI.OTAPI_Basic_GetAssetType_Name(key);
                    basketList.put(i, new String[]{label, key});
                    i++;
                }
                j++;
            }
        }
        /*int count = otapiJNI.OTAPI_Basic_GetAssetTypeCount();
        int i = 0, j = 0;
        System.out.println("count:" + count);
        while (j < count) {
        String key = otapiJNI.OTAPI_Basic_GetAssetType_ID(j);
        System.out.println("existingAssets.contains(key):" + existingAssets.contains(key) + "existingAssets size:" + existingAssets.size());
        boolean addToList = true;
        if (existingAssets != null && !existingAssets.isEmpty()) {
        for (int k = 0; k < existingAssets.size(); k++) {
        if (key.equals(existingAssets.get(k))) {
        addToList = false;
        break;
        }
        }

        }
        if (addToList) {
        String label = otapiJNI.OTAPI_Basic_GetAssetType_Name(key);
        System.out.println("label:" + label + " i:" + i);
        basketList.put(i, new String[]{label, key});
        i++;
        }
        j++;
        }*/


        return basketList;
    }