'Get the LibraryLocator that will be used in the target modulestore.'

def get_dest_id(self, courselike_key):

    if (self.target_id is not None):
        dest_id = self.target_id
    else:
        dest_id = LibraryLocator(self.target_id.org, self.target_id.library)
    existing_lib = self.store.get_library(dest_id, ignore_case=True)
    runtime = None
    if existing_lib:
        dest_id = existing_lib.location.library_key
        runtime = existing_lib.runtime
    if (self.create_if_not_present and (not existing_lib)):
        try:
            library = self.store.create_library(org=self.target_id.org, library=self.target_id.library, user_id=self.user_id, fields={'display_name': ''})
            runtime = library.runtime
        except DuplicateCourseError:
            log.debug('Skipping    import    of    Library    with    id    %s,    since    it    collides    with    an    existing    one', dest_id)
            raise
    return (dest_id, runtime)
