public Properties loadProperties(String artifact,String version) throws IOException {
  Properties props=new Properties();
  Path propertiesFile=getPropertiesFile(artifact,version);
  if (!Files.exists(propertiesFile)) {
    throw new ArtifactNotFoundException(artifact,version);
  }
  try (InputStream in=new BufferedInputStream(Files.newInputStream(propertiesFile))){
    props.load(in);
  }
   return props;
}

public Properties loadProperties ( String artifact , String version ) throws IOException { Properties props = new Properties ( ) ; Path propertiesFile = getPropertiesFile ( artifact , version ) ; if ( ! Files . exists ( propertiesFile ) ) { throw new ArtifactNotFoundException ( artifact , version ) ; } try ( InputStream in = new BufferedInputStream ( Files . newInputStream ( propertiesFile ) ) ) { props . load ( in ) ; } return props ; }
loads the properties of the artifact .
