public UserProfile fetchUserProfile(GoogleDocs googleDocs)
    {
        MetadataEntry entry = null;
        try
        {
            entry = this.getUserMetadata(googleDocs);
        }
        catch (ServiceException error)
        {
            throw new ApiException(error.getMessage(), error);
        }
        
        if (entry != null){
        return new UserProfileBuilder().setName(entry.getAuthors().get(0).getName())
                    .setEmail(entry.getAuthors().get(0).getEmail())
                    .setUsername(entry.getAuthors().get(0).getName()).build();
        } else {
            return null;
        }
    }