public void registerAllMasterFiles() {
        DataGridResource res = (DataGridResource) Sim_system
                .get_entity(super.resourceID_);
        AbstractRC rc = null;
        if (res.hasLocalRC()) {
            rc = res.getLocalRC();
        } else {
            rc = (AbstractRC) Sim_system.get_entity(super.rcID_);
        }

        if (rc == null) {
            System.out.println(super.get_name() + ".registerAllMasterFiles(): "
                    + "Warning - unable to register master files to a Replica "
                    + "Catalogue entity.");
            return;
        }

        Storage tempStorage = null;
        for (int i = 0; i < storageList_.size(); i++) {
            tempStorage = (Storage) storageList_.get(i);
            ArrayList fileList = (ArrayList) tempStorage.getFileNameList();

            for (int j = 0; j < fileList.size(); j++) {
                String filename = (String) fileList.get(j);
                File file = tempStorage.getFile(filename); // get file
                FileAttribute fAttr = file.getFileAttribute(); // get attribute

                // register before simulation starts, hence no uniqueID
                rc.registerOriginalFile(fAttr, super.resourceID_);
            }
        }
    }